c9d2685b2844f7bccad79db3a7cd61224134e0e7
[git-annex.git] /
1 [[!comment format=mdwn
2  username="Albert"
3  avatar="http://cdn.libravatar.org/avatar/79aaf48dabedd7cd96a9117685fbe2cc"
4  subject="Reproducible Example"
5  date="2022-04-29T15:57:34Z"
6  content="""
7 Fast reproducible example:
8
9 ```bash
10 ❯ mkdir annextest && cd annextest
11 ❯ git init
12 Initialized empty Git repository in ./annextest/.git/
13 ❯ git annex init
14 init  ok
15 (recording state in git...)
16 ❯ echo \"some data\" > testfile
17 ❯ git status
18 On branch master
19
20 No commits yet
21
22 Untracked files:
23   (use \"git add <file>...\" to include in what will be committed)
24         testfile
25
26 nothing added to commit but untracked files present (use \"git add\" to track)
27 ❯ git annex add .
28 add testfile 
29 ok                                
30 (recording state in git...)
31 ❯ git annex sync --content
32 commit 
33 [master (root-commit) d5dfa14] git-annex in user@dev:~/annextest
34  1 file changed, 1 insertion(+)
35  create mode 120000 testfile
36 ok
37 ❯ git annex repair
38 repair Running git fsck ...
39 Fsck found no problems. Checking for broken branches.
40 Found problems, attempting repair.
41 Some git branches refer to missing objects:
42         refs/annex/last-index
43 To force a recovery to a usable state, retry with the --force parameter.
44 failed
45 repair: 1 failed
46 ```
47
48 """]]